package com.sikaryofficial.auth.util;

import com.sikaryofficial.common.core.utils.JwtUtils;

import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletResponse;
import java.util.HashMap;
import java.util.Map;
import java.util.function.Function;

/**
 * @author : qinjinyuan
 * @desc : TODO  请填写你的功能描述
 * @date : 2025/04/03 16:22
 */
public class HeaderUtil {


    public static void setHeader(HttpServletResponse response, Map<String, Object> loginResult) {
        response.addHeader("appid", "HiSMK");
        response.addHeader("brand", "HiSMK");
        response.addHeader("channel", "mobile");
        response.setHeader("authorization", "Bearer " + loginResult.get("access_token"));
        response.setHeader("access_token", loginResult.get("access_token").toString());
        response.setHeader("expires_in", loginResult.get("expires_in").toString());
        response.setHeader("lang", "en_US");

    }
}




